﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Textbook.aspx.cs" Inherits="Textbook"
    Theme="Concise" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <link rel="Stylesheet" type="text/css" href="App_Themes/Concise/Textbook.css" />
    <link rel="Stylesheet" type="text/css" href="App_Themes/Concise/Common.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="menu">
        <ul>
            <li><a href="UniversityStudent.aspx">首页</a></li>
            <li><a href="Textbook.aspx">教材</a></li>
            <li><a href="Magazine.aspx">杂志</a> </li>
            <li><a href="Magazine.aspx">大四书摊</a></li>
        </ul>
    </div>
    <div id="container">
        <div class="left-nav">
            <ul>
                <li>
                    <asp:LinkButton runat="server">最新上架</asp:LinkButton></li>
                <li>热卖场</li>
                <li>赠书区</li>
                <li>教程求购</li>
                <li>团体订购</li>
            </ul>
            <ul style="margin-top: 100px; display=inline-block;">
                <li>
                    <asp:LinkButton ID="LinkButton1" runat="server">最新上架</asp:LinkButton></li>
                <li>热卖场</li>
                <li>赠书区</li>
                <li>教程求购</li>
                <li>团体订购</li>
            </ul>
        </div>
        <div class="right-container">
            <div style="float: left; width: 600px; ">
                <ul class="textbook-search">
                    <li><span style="color: #494949; font-size: 25px; font-weight: bold; line-height: 1.1em;">
                        搜索</span> </li>
                    <li><span style="display: inline-block; width: 70px; color: #AAAAAA">学校：</span>
                        <asp:DropDownList ID="TextBox3" runat="server">
                            <asp:ListItem>北京市</asp:ListItem>
                            <asp:ListItem>上海市</asp:ListItem>
                            <asp:ListItem>河北省</asp:ListItem>
                            <asp:ListItem>山东省</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox runat="server" ID="TextBox4">ha gongda </asp:TextBox>
                    </li>
                    <li><span style="display: inline-block; width: 70px; color: #AAAAAA">院系：</span>
                        <asp:DropDownList runat="server">
                            <asp:ListItem>汽车工程学院</asp:ListItem>
                            <asp:ListItem>人文管理学院</asp:ListItem>
                            <asp:ListItem>海洋学院</asp:ListItem>
                            <asp:ListItem>数学系</asp:ListItem>
                            <asp:ListItem>软件学院</asp:ListItem>
                            <asp:ListItem>物理系</asp:ListItem>
                            <asp:ListItem>外国语学院</asp:ListItem>
                            <asp:ListItem>计算机学院</asp:ListItem>
                        </asp:DropDownList>
                    </li>
                    <li><span style="display: inline-block; width: 70px; color: #AAAAAA">专业：</span>
                        <asp:DropDownList runat="server">
                            <asp:ListItem>计算机科学与技术</asp:ListItem>
                            <asp:ListItem>信息与计算科学</asp:ListItem>
                            <asp:ListItem>生物化学</asp:ListItem>
                            <asp:ListItem>热能与动力工程</asp:ListItem>
                            <asp:ListItem>材料科学与工程</asp:ListItem>
                            <asp:ListItem>车辆工程</asp:ListItem>
                            <asp:ListItem>交通工程</asp:ListItem>
                            <asp:ListItem>软件工程</asp:ListItem>
                        </asp:DropDownList>
                    </li>
                    <li><span style="display: inline-block; width: 70px; color: #AAAAAA">入学年份：</span>
                        <asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem>2003</asp:ListItem>
                            <asp:ListItem>2004</asp:ListItem>
                            <asp:ListItem>2005</asp:ListItem>
                            <asp:ListItem>2006</asp:ListItem>
                            <asp:ListItem>2007</asp:ListItem>
                            <asp:ListItem>2008</asp:ListItem>
                            <asp:ListItem>2009</asp:ListItem>
                            <asp:ListItem>2010</asp:ListItem>
                        </asp:DropDownList>
                    </li>
                </ul>
                <div>
                    <p class="block-title">
                        好友教程动态</p>
                    <ul class="textbook-dynamic">
                        <li><span class="friendname">于晓龙</span>上传<span class="dealbook">计算机组成原理</span></li>
                        <li><span class="friendname">张伟</span>买了<span class="friendname">王超</span>一本<span
                            class="dealbook">数学分析</span></li>
                        <li><span class="friendname">田军</span>在捐赠场找到一本<span class="dealbook">高等代数</span></li>
                        <li><span class="friendname">池影月</span>捐赠了一本<span class="dealbook">概率论</span></li>
                        <li><span class="friendname">时坤</span>捐了一本<span class="dealbook">概率论</span>给冯超</li>
                    </ul>
                </div>
                <div>
                    <p class="block-title">
                        最新教材上传</p>
                    <div class="tab-content" id="newbookcontent">
                        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                            <HeaderTemplate>
                                <ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li style="width: 140px; margin-bottom: 10px; height: 100px;">
                                    <asp:HyperLink ID="HyperLink1" CssClass="bookimage" runat="server" ImageUrl='<%#"~/BookImage/"+ Eval("BookImage") %>'></asp:HyperLink>
                                    <asp:Label ID="Label1" CssClass="authorname" runat="server" Text='<%# Eval("BookName") %>'></asp:Label>
                                    <asp:Label ID="Label2" CssClass="bookdetail" runat="server">关注度</asp:Label>
                                    <asp:Label ID="Label3" CssClass="bookdetail" runat="server">加入日期</asp:Label>
                                </li>
                            </ItemTemplate>
                            <FooterTemplate>
                                </ul>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </div>
                <div>
                    <p class="block-title">
                        我的书橱</p>
                    <div class="tab-content" id="Div1">
                        <asp:Repeater ID="Repeater2" runat="server" DataSourceID="SqlDataSource1">
                            <HeaderTemplate>
                                <ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li style="width: 140px; margin-bottom: 10px; height: 100px;">
                                    <asp:HyperLink ID="HyperLink1" CssClass="bookimage" runat="server" ImageUrl='<%#"~/BookImage/"+ Eval("BookImage") %>'></asp:HyperLink>
                                    <asp:Label ID="Label1" CssClass="authorname" runat="server" Text='<%# Eval("BookName") %>'></asp:Label>
                                    <asp:Label ID="Label2" CssClass="bookdetail" runat="server">关注度</asp:Label>
                                    <asp:Label ID="Label3" CssClass="bookdetail" runat="server">加入日期</asp:Label>
                                </li>
                            </ItemTemplate>
                            <FooterTemplate>
                                </ul>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:twtestConnectionString2 %>"
                    DeleteCommand="DELETE FROM [Books] WHERE [BookID] = @BookID" InsertCommand="INSERT INTO [Books] ([BookName], [ISBN], [Author], [BookImage], [BookComment]) VALUES (@BookName, @ISBN, @Author, @BookImage, @BookComment)"
                    ProviderName="<%$ ConnectionStrings:twtestConnectionString2.ProviderName %>"
                    SelectCommand="SELECT [BookID], [BookName], [ISBN], [Author], [BookImage], [BookComment] FROM [Books]"
                    UpdateCommand="UPDATE [Books] SET [BookName] = @BookName, [ISBN] = @ISBN, [Author] = @Author, [BookImage] = @BookImage, [BookComment] = @BookComment WHERE [BookID] = @BookID">
                    <DeleteParameters>
                        <asp:Parameter Name="BookID" Type="Int32" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="BookName" Type="String" />
                        <asp:Parameter Name="ISBN" Type="String" />
                        <asp:Parameter Name="Author" Type="String" />
                        <asp:Parameter Name="BookImage" Type="String" />
                        <asp:Parameter Name="BookComment" Type="String" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="BookName" Type="String" />
                        <asp:Parameter Name="ISBN" Type="String" />
                        <asp:Parameter Name="Author" Type="String" />
                        <asp:Parameter Name="BookImage" Type="String" />
                        <asp:Parameter Name="BookComment" Type="String" />
                        <asp:Parameter Name="BookID" Type="Int32" />
                    </UpdateParameters>
                </asp:SqlDataSource>
            </div>
            <div >
                <p>
                    adfafafd adfadf afd</p>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
